{include file='header.tpl'}

<h1 class="page-header">Cadastro de Album</h1>
<form class="form-horizontal" id="album" name="album">

    <ul class="form-group panel panel-group list-unstyled">
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="nome">Nome do album</label><br />
            <input id="nome" name="nome" placeholder="Nome do album" class="input-sm  col-lg-12" type="text" maxlength="255" valida='sim,,Nome do Album' value="{$dados.nome}">
        </li>  
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="descricao">Descrição</label><br />
            <textarea  id="descricao" name="descricao" placeholder="Descrição" class="ckeditor input-sm  col-lg-12" type="text" valida='sim,,Descrição'>{$dados.descricao}</textarea>
        </li>
        <li class="control-label">
            {if {$dados.id_album}}
                <input type='hidden' name="id_album" id="id_album" value="{$dados.id_album}" />
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="EditarPadrao(this, 'album', '{$id_album}', 'lista_album.php');">
            {else}
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="InserirPadrao(this, 'album', 'lista_album.php');">
            {/if}
            <span id='aguardando'></span>
        </li>
    </ul>
</form>
{literal}
    <script type="text/javascript">
        $(document).ready(function() {
            $(".accordion").accordion("option", "active", 2);
        });
    </script>
{/literal}
{include file='footer.tpl'}